package scau.zhong;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;
import tk.mybatis.spring.annotation.MapperScan;



@MapperScan("scau.zhong.mapper")
@EnableFeignClients
@SpringCloudApplication
public class OauthServerApp {
    public static void main(String[] args) {
        SpringApplication.run(OauthServerApp.class);
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
